# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
Department.create(dpname: '分行', dpno: '000000', level: 1, master_id: 0, status: 0)
User.create(email: '000000@boimc.com', user_name: '000000', department_id: Department.find_by(dpno: '000000').id, admin: true, password: '123123123', password_confirmation: '123123123')
Admin.create(user_name: 'admin', password: '123123123', password_confirmation: '123123123')
['民族集团', '利客便利店', '北京华联'].each do |f|
  BusType.create(name: f)
end

['3月', '6月', '12月'].each do |f|
  TermType.create(name: f)
end

#Admin.c
